package com.wukaige.goods.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author wukaige
 * @since 2021-07-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("address")
public class Address implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 地址id
     */
    @JsonProperty("value")
    @TableId(value = "aid", type = IdType.AUTO)
    private Integer aid;

    /**
     * 地址
     */
    @JsonProperty("label")
    @TableField("addressname")
    private String addressname;

    /**
     * 用户id
     */
    @TableField("uid")
    private Integer uid;

    /**
     * 地址
     */
    @TableField(exist = false)
    private Integer[] cityid;

    /**
     * 地址
     */
    @TableField(exist = false)
    private String[] cityname;
}
